package cn.wolfcode.luowowo.article.domain;

import cn.wolfcode.luowowo.common.domain.BaseDomain;
import lombok.Getter;
import lombok.Setter;
import org.apache.commons.lang3.StringUtils;

import java.util.Date;
import java.util.List;

/**
 * 景点
 */

@Getter
@Setter
public class Scene extends BaseDomain {
    public static final boolean STATE_HOT = true;
    public static final boolean STATE_NORMAL = false;

    private List<Scene> parent;  //下级(子)景点集合
    private Destination dests;  //目的地
    private Long parentId;  //目的地
    private String name;  //景点名字
    private String survey;  //概况
    private String coverUrl;  //景点图片
    private int replyNum;   //评论数
    private int favorNum;  //收藏数
    private Boolean isHot; //是否热门
    private String traffic;  //交通
    private String price;  //门票
    private String openTime;  //开放时间
    private String tel;   //电话
    private String website;  //网址
    private int goNum;   //去过的人数
    private int star;//星星
    private int thumbsupnum;//顶
    private Date createTime;//创建时间

   // private List<SceneTag> tags;
   //从数据库拿出的图片
   public String[] getCoverUrls(){
       String[] strs = null;
       if(StringUtils.isNotBlank(coverUrl)){
           strs = coverUrl.split(";");
       }
       return strs;
   }

}